DCT - Implementing discrete cosine transform (DCT) for converting a signal into elementary frequency components. It is widely used in image compression. Here we develop some simple functions to compute the DCT and to compress images.