When to Impute? Imputation before and during cross-validation