Setup dijkstra's main classes, wrote readEdgesArray