rotation_it (iterative rather than recursive). Currently slower than the recursive version