saves data in SVM format