Testing some sorting and searching algorithms.