Huffman coding and a simple text compressor