added RF cross-validation functions