added getMatrixSize to cMatrix