added the equals function to the IdentifierSet. pleas check validity!