Detection and Remediation of Stagnation in the Nelder-mead Algorithm Using a Suucient Decrease Condition, Technical Report