Exploring the Nelder Mead method of optimisation.