Adds a vertex to the polygon.
the index in the list of vertices where to put the new vertex
x coordinate
y coordinate