fft code pretty much from sedgewick .. will need plenty of testing and simplyfing