Modular functional genetic algorithm library in Scala