removed splitter.in_same_leaf and some cleanup in WeightedAverage