Added linear algebra functions