change huffman encoder processing into table.py