implement get array maximum summation in its sub arrays and its position