use accumulate method to solve the split array summation to two half child array