added linear algebra methods