makefreq function

Compute allelic frequencies