fixed bug in grid_search() algorithm. repair doesnt change performance model of the code at all, just makes it more correct
fixed bug in grid_search() algorithm. repair doesnt change performance model of the code at all, just makes it more correct

ANL-CESAR/XSBench,ANL-CESAR/XSBench