Bug fix: the type was not the correct one
Add basic support for grid search
Reduce code duplications
Cleanup
Refactor + SVM Grid search in CDBN