Quick Method for Median and Mode