Aerodynamic optimization of an airfoil using gradient based method