refactored the edge and node pointers to indices inside the node / edge array to stop the lib from crashing when adding an edge or node triggers a realloc
added DFS
removed the binary that resulted from compiling test.cpp