optimizing n-d rosenbrock with different optimization routines