get array maximum summation in its sub arrays