validate function

Get bias-corrected performance measures via bootstrapping or cross-validation