BS [Chapter 5.3]: Permuting an array by randomly swapping values.