build: moving corner vertices to the first edge; runtime: portal first and last indices in find_shortest_path.