implemented svm trainer, model and grid search in parallel. need to test.