which_min function

Return location of minimum, maximum and mode values' index