A module for genetic algorithm