--- from: http://rosettacode.org/wiki/Perfect_shuffle