n-order markov chain