Shuffle the elements in an array