checkDupDetections function

Check if there are duplicated detection in the input data