Text this: Optimal curve fitting for CNC machining /