Wrapped global data in a class. Greatly improved encapsulation of the Huffman code tree.