Implemented Breadth-first search and Depth-first search, made Vertex
comparable