Simple sorting and searching algorithms.