more examples for selection, sorting and majority