Corrected mean and median calculations
Corrected mean and median calculations