add bellman_ford, dag_sp and dijkstra algorithms