Sum of paths of a binary tree