Huffman encoder done (no checks at all, probably many bugs)