Update LibSVM format script for processing entire dataset