Create selection algorithm