find sum in a tree