re-ordered Gotoh & SW tests
added a basic arithmetic encoder