Add shortest path algorithms
Add INF, MOD, EPS to common.h