Kadane 2D (combination of prefix sums and Kadane 1D)