method to break ties. The random
method selects the index of the minimum elements
randomly, while the first and last options
imply that the first or last instance of the minimum
element will be chosen, respec
Value
location of the minimum element in the vector x.
If there is a tie, we break the tie with the method
specified in break_ties.