add Average class for calculating truncated mean
use Mean in Average
remove the need for explicit casting to Float in Mean