Sorting algorithm common operation - Search