Solved maximum subarray problem.