Binary recursive search with C++ language