Added CompoundMetric class.

Signed off by: Heitor Reis <marcheing@gmail.com>