shift function

Permute elements of a vector in a cycle