Changed to vectors in duplicatesExists

Oskar. 2 hours, 30 minutes