computer the max sum sub array of an array