BST for Path printing and path summation