writes sparse matrix to a file in LIBSVM format
libsvmwrite('filename', label_vector, instance_matrix);
The instance_matrix must be a sparse matrix. (type must be double)