Included weighted mean as new function "weightedMean"