Implement Vertex class

resolve #8