Detects similar lines in a file