little bit implement huffman encode