Finished huffman coding main part