added beginning of SVM code, renamed