Genetic algorithm outline implemented