Huffman encoding project in C