06 BST LAB

I think you need r->right = remove(n->k, r->right) or else some of your pointers are going to get messed up.