creating 2d node list and setting up initial parents