C++ code for the arithmetic coding compression technique