added rotate matrix skeleton
Implemented rotateMatrix with rotation matrix