how to calculate mode and median - Search