refactor #b_search_index: add return to recursive calls