Simple compression using huffman codes