An adaptive stochastic global optimization algorithm for one-dimensional functions