Huffman algorithm source code