Add tests
Pass Graph by pointer, as we are modifying it

The dist<> map is modified during the Dijkstra's algorithm but I was
implementing the Functor of the distance comparison by passing a const
reference. This doesn't solve the whole issue, but makes things better.
[minor] Change letters

They are closer to CLRS, to make things a bit clearer.