getting stats of the maximum, minimum, range, sum and average in one fell swoop