Added some matrix operations