Calculates mean median and range