added debug
debugged dijkstra