Huffman Coding homework