Dijkstra Shortest path algorithm.

This algorithm uses adjacency matrix.