Huffman Algorithm final