Implement deleting from a binary search tree