Implement DQT merging

See #30.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Merge pull request #88 from dwbuiten/dqtmerge

Implement DQT merging