flip_exits function

Flip exits in an FFT definition