added sweeping of group differences in covDist (necessary for permutation testing)