Adds toString method to Vertex class