06_BST_Lab_Kyle_Richardson

I think you need
r->right = remove(temp->k,r->right)
just in case the root of the right sub-tree changes