Arithmetic-Coding Exercises