The Confined Chord Error Algorithmfor Machining Complex Parametric Curve