in create_node if null is passed as parent a new root node is created