I copied the exact algorithm in this post but somehow it\'s not working in C# Recursive function of Bezier Curve python. Here\'s my code: