Uses of the fast Fourier transform (FFT) in exact statistical inference