inner loop of full Platt for SVM
svm full Platt outer loop