change dijkstra to return (int*pathfinder.t) option