Added the feature of recording the global optimum individual.