flight.js: use a bisect search in getNextSmallerIndex