Added in some matrix methods