Updated Gridsearch minimizer to work with new CWorkerThread.