Added median function by gender and mother tongue