Library for genetic algorithms