Train using the genetic algorithmΒΆ

WIP: include all details for training with genetic algorithm.