Sum.Weights function

Sum weights for internal nodes