rotate2D function

Rotate a 2D matrix in 90 degree steps.