Impelemented sorting of species by fitness (descending) and writing a population to file.