issue #137 add threads input to CompoundDistribution, fix benchmark examples