Switch to Nelder-Mead

Switched to a Nelder-Mead simplex optimiser. Seems to be a little more
useful.
Initial attempts to fix local minimum problem

Yup, that. Not so successful. Some problems were of course caused by too
large an RK4 step. To do next: speed up simulation!