indexesEqualTo: Find indexes of a value using binary search
Description
Given a sorted vector, it returns the indexes of the vector elements equal to valueToSearch.
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 indexesEqualTo function.