delete a node in a binary search tree