fin-turnpoints function

Turning points of a time series