Discrete Cosine Transform Final Code added.
Refer this code as the final one instead of the other one in the repo