Implement DQT merging

See #30.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>