Faster comparison for duplicate sampleids