Create directories.

Add test for Bellman-Ford algorithm.