cleaned up mdct code a bit