Added some linear algebra methods as used by examples