Added TreeSum.

Signed-off-by: Ryan Jackman <ryan1271@verizon.net>