indexesInRange: Find indexes in a range using binary search
Description
Given a sorted vector, it returns the indexes of the vector elements included in range [lbInclusive,ubInclusive].
The functions suffixed with the vector type (indexInRangeNumeric,indexInRangeLogical etc.) can be used ONLY with the specified type, otherwise the vector is coerced, and they are (hopefully negligibly) faster then the generic indexInRange function.