Add method fot rotating matrix
Add method fot rotating matrix