Bezier Curve

Problem of stack overflow when too many control points...