Shuffles array elements in place.