PPT Slide
NODE_PTR delete(NODE_PTR t, int x){
if (t==NULL) return NULL;
t->left = delete(t->left,x);
t->right = delete(t->right,x);
if (t->left == NULL) return t->right;
else if (t->right == NULL) return t->left;
else { /* has two children */
NODE_PTR suc = deleteSuc(t);