Detecting a shuffle in a process