Samples of Collections, sorting algorithms, and searching algorithms