Add sum_tree helper

This is a common pattern so it is better to have a unique implementation.

Merge request reports

Loading