added iterators and removed internal vectors
refactoring + another paper that implements arithmetic coding