Fixing the Traind not found error in CARTpredictor.R