changed set_freqs() method to deal directly with finite populations