Rotate matrix by 90 degrees