adding TreeDiameter solution