Implement DQT merging

See #30.

It seems to work correctly, reviews welcome. Saved me a whopping *four bytes*!