setOrdering function

setOrdering: a function for selecting the ordering method in the elimination process.