Implementation of Binary Search in C++