rotate function

Circular rotation of an ordered tuple