A global optimization algorithm using stochastic differential equations