Fixed the compulsion to split the task into two halves because of tan(x) discontinuity.
Splitted the task by sectors.
Bug fixes.
bisection method added.
Added --contour as an option in algo=stitch2d