Quick and dirty implementation of pegasos svm.