Rotate matrix by 90 degree