Rewrite svm example to run in parallel.