add transaction amounts from leaf to root