Update submatrix.c