rotate_copy algorithm and test
Merge pull request #66 from roshanr95/rotate_copy

rotate_copy algorithm and test