improvement in optimization of dijkstras. Still needs work
Prims is a spanning tree but not minimal. Issue may fix both algorithms