5.8 listing for finding the location of a target value using the binary search