Generic hill climber for multivariate functions