Added macros for genetic algorithm