add huffman code generation
change huffman code order