time series to SAX