Cesa salaam's bsearch