first shuffle
perfectshuffle(configuration,n);