Create vertex.cpp

new vertex code.