complete linear algebra theory and implementation