func Huffman not work