Contee's bsearch