Update Diameter of Tree