CNC tapping machine