Added methods to SortedPopulation.java