Added example for 2D Newton-Raphson optimisation