flat_spots function

Longest flat spot