Added forward DCT implementation.