WIP Implement hyperparameter tuning and CV

The hyperparameter is now tuned via crossvalidation with grid search.