Update ShortestDistance.cpp