var_pair_dist function

Variance of all pairwise distances.