REF: HashMap used to store distance to each join in dijkstra. Removes all dijkstra implementation from the Join class