Classes implementing PPM and simpler models for encoding sequences of bytes using arithmetic coding.