implement self made compression (LZ77)