Update shortest_path.rb