Arithmetic coding with folds and unfolds - Bird, R; Gibbons, J (2003)