create huffman tree