Calculating a linear-time solution to the densest-segment problem. (14th December 2015)