C++/STL Algorithms Binary search