deleteDuplicates(string filename) function added