Maximum Sum Submatrix Leetcode Java