Arithmetic coding on top of prediciton by partial matchig (PPM)