Curve matching by using b-spline curves