Added some matrix methods