A Storage Efficient Way to Implement the Discrete Cosine Transform