CSOR: Coreset selection for object re-identification via class pruning