Fixed errors and added iterator method to SortedPopulation.java