Juggling rotate algorithm in chapter 2.
Benchmark for different rotate algorithms.