Implemented matrix and matrixOps types