Add arithmetic coding support