Median from a frequency table Variation Theory