Integration with libsvm to avoid using external text files