How to Calculate for the median of a grouped data.