implementing linear algebra stuff