A LZ-based compression algorithm