Added a "rotate" implementation of my own

Actually from a Javascript challenge: http://thereq.com/q/201/javascript-software-interview-question/rotating-an-array