Made population size a run-time parameter