HuffmanC++ construct tree