worked on dij algo