IMplemented shuffling of data.
Building sets now works correctly with shuffling.