Tree insert accepts both node and value