fix find_shortest_path()
fix find_shortest_path()

Reference element of vector visited[n] is invalidated when the vector
is reallocated.

fixes #78

project-gemmi/gemmi,project-gemmi/gemmi,project-gemmi/gemmi,project-gemmi/gemmi