Added setCallbackNewMinimum() which registers a function the optimizer calls when a new minimum has been found.