import mode function from Stats