Update MaximumSubarray.java

cur_max to store the current maximum sum. It is the larger of two: 1) the current element (if cur_max is negative) 2) the sum of cur_max and the current element (if both of them are positive)