treeselection sort, aka tournament sort