removed copy constructor and destructor for vertex, they were causing problems