Adds Randomize-in-pace algorithm.