add maxSumArray