Added parent object to Node class - 1/3 done with algorithm (roughly)