Adds brute-force solving of max-subarray problem.