Little refactoring.
Added maximum subarray linear solution.
Bugfix for linear solution of maximum subarray problem.