optimize 8x8 dct functions