A framework for genetic algorithms in Scala