Implemented DCT