how to calculate the mode - Search