Maximum Submatrix Leetcode Python