My implementation of the Huffman algorithm