CLRS page 68.
https://github.com/NovaOrdis/playground/tree/master/data-structures-and-algorithms/maximum-subarray-problem