Added weightedMean()