add some matrix method