POJ 1339: Huffman tree