Add a genetic algorithm template

Add a template for the genetic algorithm processing.