Rotation and shift of array, documentation