add a libsvm struct to store the model after training it
implement learn_model() and rank()