Moved the function to the cross_validation package. Also modified the shuffling function to run concurrently.