add label pair functionality to contrastive loss function