loess_auto function

Perform an automatically loess based smoothing of a time series