dijkstra is working on 2d example