Added derivation of SVM