maximum sum rectangle in a 2d matrix brute force