Compression algorithm.