Add 'rotate' function to rotate table clockwise 90 degrees