Major update: Genetic algorithm implemented