Added some classes for the genetic algorithms

Diogo and I added some new classes and methods that will later be part
of many genetic algorithms.