Genetic algorithm implemented and is working.