start implenmenting Arithmetic Coding Scheme