Finished the generation of training/test stimuli

Added shuffle function and a test file.