Huffman coding algorithm rust implementation