Maximum Submatrix Leetcode Javascript