Fixed a bug and improved BestContiguousSubArray. Added exercise.