Stolke and Omohundro's method