binary search debug