FFT code from T. Billiam at University of Otago with multi-threaded support