DM's speedup of shortest path by shortcut
Merge pull request #558 from lassewesth/shortestpath

DM's speedup of shortest path by shortcut