rewrite svm.py

1. add class SVM
2, add 1 method predict
update gitignore