Added data shuffling routine to subroutines.py