Some refactoring.
Added maximum-subarray problem solution.