impl 2*lg(N) algorithm to search in a bitonic array