Adding diameter and child sum