Ordinal time series analysis