Binary search cpp version

binary_search_cpp(x, y)

Arguments

x

A double to be find

y

A double vector

Value

A integer of position