make shortestPath() return a map
make shortestPath() return an error if the destination is null)