Rotate n x n matrix by 90 degrees