Own genetic algorithm