AlgoImpl::UpperBoundInternal

Performs binary search, resulting in position of the first element that is larger than the given value