Find sub-arrays of maximal sum