Very shaky framework of huffman encoding