Encodes and decodes according to the Huffman coding algorithm to compress and decompress text files.