Fixed huffman code issues
Add display chart for debug