Add a cross-validation program

A parallel cross-validation function and support code are added to
svm.h.