[Issue #6] Fix output.
Resolve #6. Implemented Dijkstra algorithm using adjacency matrix.