create huffman coding tree