Algorithms for computing phase correlation, cross power spectrums, fast (and slow) fourier transforms, et cetera