Circuit Implementation of SVM Training