Module: Ford-Bellman algorithm