extract_paths_from_solution function

Extract paths from a single solution