Calculates the sum of within-set pair-wise distances and compares to ‘nitr’
permutations of the same distribution to calculate the probability of observing
clusters as tight as observed or tighter. The p-value is calculated by
running nitr-1 permutations and counting the number of cases where the sum of
pair-wise distances is as small as smaller than observed.
That count is increased by one and divided by nitr to estimate p.