Tool Orientation Optimization in Complex Surface Machining