Dynamic Markov compression