Complete rotateMatrix.py