int sum(const Tree T) { if(T == NULL) { return 0; } else { return T->item + sum(T->left) + sum(T->right); } }