included an add2d function in polynomial.py