Shortest Path in a DAG