setup dijkstra's O(mlogn) algorithm
dijkstra workspace auto-config