source code for arithmetic coding