Complete the delete operation of a binary search tree