Pure-Python and Cythonized FDCT() implementations