code: func (results *results) search(result *nmVertex) int {
  	return sort.Search(len(results.vertices), func(i int) bool {
  		return !results.vertices[i].less(results.config, result)
  	})
  }
docs: // search will search this list of results based on order, order
  // being defined in the NelderMeadConfiguration, that is a defined
  // target will be treated