Compression algorithm study