Add another greedy algorithm problem: max_subarray