Exercises 2.67 ~ 2.70, Huffman tree