Rotates an array 90 degrees clockwise or counter-clockwise