Main class implemented for dataset grid search.