2D-DCT Implementation for JPEG encoder

@cfelton I think that the encoder should real-time encode a HQ video stream.