Add arithmetic coding to SC3DMC