An interactive MATLAB tool for B-spline curves