chapter 11, sorting and searching