combine each singleton tree to build the huffman tree