added dijikstra implementation with set