Complete Arithmetic Coding: Basic Concepts, Theory, Practical Implementation