Implement SVM using gradient ascent method