Adding linear algebra methods to MDMatrix