implemented shortest path search

- get distances function
- count using UCS algorithm
- display the solution