solving mean,median and mode of grouped data