Added solution of shortest path task