Function BISECTION to be checked:
sometimes the vector of occurrences have more than one entry
for a specific value.