Impl HUFFMAN code

Impl HUFFMAN code