Calculate allele sharing distances