Add parent pointers to nodes and begin using it in static.cpp.