Rotate right

Implemented basic rotation functionality.