Remove duplicates iteration