ArithmeticCoding, BitStreams and new enhanced DictExpansion with appropriate testing