Create discreteFourierTransform.js

Finally got around to doing this. It is quite nice, I have learned quite a bit about Fourier transforms. I may update the code for some optimizations later.

Based on sections 2.6 and 3.6 of NIST SP 800-22, Revision 1a.