modified SVM_C for L2 norm