variable length markov chain modeling algorithms 5234713