Changed nextract to be simpler and to write out files in libsvm/liblinear input format