some changes in Bellman-Ford. Add DAG shortest ways.

DAG - directed acyclic graph