Linear Time Solver for Primal SVM