add non-recursive binary search in bs.c