not using any sort of heap, looking for smallest distance node every
time. no change though. errors in random test.