how to calculate a mode - Search