This is the binary search, that is implemented in C++ programming language