here is the code for binary search through stl. why is this code giving wrong answer for the input ‘9’ ?