Simple rANS encoder/decoder (arithmetic coding-ish entropy coder).