added ToLibSVM for SparseMatrix