An algorithm for continuous piecewise linear bounding of discrete time series data