CoreDiag: Eliminating Redundancy in Constraint Sets