Nelder-Mead seperate file added. New method checks for max # calls