Added SVM code from libsvm. Will have to modify the code to allow arbitrary kernel functions, notably for subspace distance computations.