forEach/toString for submatrix