Various implementations of shortest path algorithms in D