What is cross-validation and how do you use it?