LZ-based Compression Algorithm