This problem is used in private contest:类与对象/哈夫曼树