Parallelized some portions of svm training.