algorithms for intersecting algebraic and parametric curves, implementation in matlab.