test binary search non_recursive returning boolean