Complete Huffman exercise