Bezier curves implemented using mathematical representation