So I have this compression algorithm.This Algorithm depends on duplicates of string in a file. Can someone help with a solution on how to get those duplicates.