Leslie Lamport's non-recursive quicksort described in http://bertrandmeyer.com/2014/12/07/lampsort/