Implementing the algorithm. Few alterations to city and connections classes to make things work.
Displaying results correctly