getting timeseries2int_series working and tested
got segmented least squares working but not tested