Refactoring make_liblinear_input.pl