R code for reading and writing files in libsvm format