Rotate algorithm
Merge pull request #62 from roshanr95/rotate

Rotate algorithm