Succesfully compresses data using LZW algorithm