initial implementation of simple arithmetic coder
papers and reference implementations