Added method to check for disjointness of 2 classes.