optimized linregress to return a minimal timeseries whith two datapoints