Development of a CAPP system for multi-tasking machine tools to deal with complicated machining operations