implement write.svmlight