Add submatrix method