Reduce the size of the acoder_test main function.
Arithmetic coder better buffering code.
Fix ANN edge cases where probability is 1 or 0.
Improve ANN testing to show that it learns.