The DIRECT-1 algorithm for minimizing a multidimensional function. (searching for parameters of the inverse sqrt hack). Implementation 2010-02-13 by Jan "Rrrola" Kadlec. Public Domain.