https://github.com/Harry-Chen/arithmetic-coding
