Divide.Weights function

Divide weights of internal nodes