Update submatrix sum