Lab2-Genetic algorithm