check_folds function

Check if folds result from subsampling with p = 0.5.