implement ann and svm myself