A C++ implementation of pegasos support vector machines