Added toString() and worked on Arithmetic coding