Debug output for testing the submatrix calculations

Debugging for the submatrices.