finish huffman coding