flood.length.max function

Calculates the maximum flood length in a time series.