Hill climb search function template