Added dijkstra's without path recording