Abstract Hidden Markov Memory Model