Modeling Inter-Class and Intra-Class Constraints in Novel Class Discovery