R: Get SNP distance matrix from multiple MSAs