add prototypes for crossValidation and add some forward declaration.