A new approach for optimal offline time-series segmentation with error bound guarantee. (July 2021)