Commit Bellman Ford Algorithm