Using A-patches to Tessellate Algebraic Curves and Surfaces