An adaptive Bezier Curve app that works with a varying number of control points