Rewrite IDCT_1D_Multi function