add Nelder-Mead method to math collection