bug fix bitonic search