The simple genetic algorithm :foundations and theory