RFC: findInterval(x,vec)

this is the pull request for issue #7468