LZ77 Data Compression Algorithm implementation in Perl