Fixed right rotation
Merge pull request #5 from Lukamicoder/master

Fixed right rotation
Merge pull request #1 from reliak/master

Megre modify code.