Create submatrix sum