add various bsearch interfaces