algo4: tree: Sum all node pair distances in binary tree