Update patch.c

Adding node_intersection