Added pairwise class constraints discovery