loci_pi function

Estimate nucleotide diversity (pi) at each locus