Optimisation of tool path for wood machining on CNC machines