GCode analysis and optimization tool