Compress and Decompress using Lz77 Technique in java