A Python code that searches for the rectangular submatrix of maximum sum in a given MxN matrix