find.minmax function

Find min/max of a time series