Implement data compression and decompression by using arithmetic coding.