On Algorithm for circular rotation of an array

Example of a generic method that rotates an array by a given shift