Mixed memory Markov models