R port of the Scilab neldermead module