SC-MIL: Supervised Contrastive Multiple Instance Learning for Imbalanced Classification in Pathology