Implement DQT merging

See #30.

It seems to work correctly, reviews welcome. Saved me a whopping *four bytes*!
Woops. Yeah that's more accurate. I've updated the PR with the new comment.