add poly.cpp in c,c++,py2,py3,ruby