Get the agent at an index in the population
population
an external pointer to a population, for example, one returned by newPopulation()
newPopulation()
i
the index of the agent, starting from 1.
the agent at index i in the population.