Implement DQT merging

See #30.

It seems to work correctly, reviews welcome. Saved me a whopping *four bytes*!
Shouldn't this be fin_prec |= prec[ci] ?
What is the intended return value from this function when not all tables have the same precision?