Fixed Dijkstra algorithm - it is now one directional and it does not allow to search paths which do not exits.