Python code that implements an algorithm for finding the maximum submatrix sum of an M by N matrix,