new class to make cross validation on a folder containing files