A method of finding the global minimum of a function of one variable