correct recursive binary search problem, include std library classes from sedgewick