rotate method
Merge pull request #3 from doodeec/master

add rotate method, thx to @doodeec