add grid search program