Mode function

Calcualtes the mode of a numeric vector