R Based Genetic Algorithm