Making compare_fitness a functor