Order-2 markov model