Adaptive Huffman Tree class with Compress and Decompress algorithms