Java program to create and manipulate cubic Bezier curves and B-Spline curves