Multidimensional global optimization using the first derivatives