Finishing the huffman encoder