Add node search C helper function (nodeDFS)