G-Code Programming Optimization