A algorithm which can find the maximum summary of segment in the integer array.