run_nodesplit function

Perform the node-splitting approach