Adaptive binary stream prefix-free encoding (also the Kraft-style code)
Implementation of a coding method from:
Compression of data streams down to their information content. George Barmpalias and Andy Lewis-Pye. IEEE Transactions on Information Theory Volume 65, Issue 7 (2019).
done by G. Barmpalias and Chen Shichao. Since this has the Kraft-Chaitin prefix-free coding as a subroutine, an isolated file with this simpler code is included.