fixed algorithm for deleting 2 child node