Change function signature of search algorithms
to match STL versions