implement svm trainer. Need to find ideal parameters