new util class Vertex speeds up BellmanFord and Dijkstras algo