add grid_search method