I want to iterate through the locations vector, which consists of coordinates, a planet symbol, and a planet ID (like 4567), and use the distance equation to find the shorte