Text this: Efficient high-order hidden Markov modelling