Huffman Tree implementation for CS 1332