new gridsearch() function + example (thanks Lars Buitinck)