finished djikstras, moved to util