Software Simulation of Numerically Controlled Machining