Removed linear algebra functions, moved them to their own module

Also, changed the Num instance for Num a => [a] to deal with vectors
instead of polynomials