Added shortest path output to the dijstra algorithm.