In reply to Peter.

surprised by how much my brief solution (code-wise) is slower than Keshan's (on March 10, 2017 11:35 pm)

7¼ secs for my 6 statement CATS() based solution against the Keshan's array-shuffle loop which took 1½secs on the same machine

In future I shall be more careful about making those data-type conversions