Basic submatrix implementation with nd-wrapper