Optimized NURBS Curve Based G-Code Part Program for CNC Systems