Gets the mode for a set of integers