Added equality check to VertexWord