[huffman] 1.and make huffman tree function