DCT & IDCT in c