Template based C++11 FFT implementation.