xegaInitPopulation function

Initializes a population of genes.