get the maximum summation of sequential elements in an array
merge