genetic algorithms implemented