Adding arithmetic coding lib by Amir Said & William A. Pearlman