Calculates basic statistic functions on a number set