Index.Weights function

Compute leaves weights