Utility function for creating cubic bezier curves

I added a small utility function to simplify the creation of cubic bezier curves. I hope, this is useful for some users.