Added DCT implementation