combine util.hpp to common.hpp
refactor coordinates to Coord
let's not use dijkstra for an unweighted graph