finished huffman coding