make addVertex append before the closing point
Merge pull request #239 from kenichi/polygon_add_vertex

make addVertex append before the closing point