added solution to LeetCode maximum subarray problem