Two ways of performing Dijkstra's algorithm (MAX and MIN) added.