A Bezier curve calculator and approximator for any degree and any cardinality