Moved to own package and added concurrency support

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