training.cpp working with libsvm