Fixed Huffman bugs, now passes unit tests.