changed Comp and Decomp in AdaptiveArithmetic classes to close the input streams that thye use after they're done