Optimal compression using discrete cosine transformation in matlab: Discrete cosine transform method for optimal compression