Chunk-based (i)dft. Trig module.