optimized linregress to return a minimal timeseries whith two datapoints
Merge branch 'feature/linregress' into is24-master

* feature/linregress:
  optimized linregress to return a minimal timeseries whith two datapoints