fixed errors, added literals _ls, _ring, _poly, CT changed to double, namespace to cart2d