Adding rotation function. Need to be optimized.
Kickass commit!