Added R code for a projectile using a genetic algorithm