optimize to O(n^2*m) time complexity to get maximum summation in a 2-dimension array to find its sub array