Adding golden section search for minimization