Added a solution for the maximum subarray problem