Update Rotate Matrix 90 degree with clockwise/counterclockwise recursion