unique source minimum path, dynamic algorithm, good