Add functions to find the solution given starting population.