Calculation of Median in case of Individual Series and Discrete Series