Add neural network mixer test.
Implemented buffered read/writes to arithmetic coder.