Added cross-validation measurements

Added cross-validation function to split dataset and perform accuracy
calculations