fit_alignment_proc2d function

Optimal rotation and scaling alignment to a smooth curve