detaching binary tree node