Rewrite deleteMin, deleteMax in terms of updateExtremity.