rotate a 3x3 matrix 90 degrees counter-clockwise