Fix 2D optimization. Implement ND optimization for Ackley function.