Worked on 24

Added several shortest-path algorithms to the toolbelt, or at least
polished them off - they were looking quite rusty!