worked on array rotations