Huffman Tree, Data Structure Homework 3