Cosmetic changes
replaced for loop over positions with foreach loop over positions in an array
in preparation for being able to exclude positions in the alignment from
the diversity calculations