Adding shortest path algorithms.