realize pattern search, coined by Hooke and Jeeves.