Removed the distance_map and the old seen_list (implemented with a
set).