Almost done with SMO algorithm in SVM