Fix #50

Make trellis work with DCT implementations other than the default:
scale and store transform coefficients for trellis