Added a Monoid instance for quantities.

Addresses #15.