Create tree path sum