Fixed a bug in the discrete cosine transform that occurs when the domain minimum was something other than 0.