operation on Matrices