General question: I did a quick search a while ago and found around 15 instances of binary search. Would it be possible to use `bsearch` from the standard library instead of all these duplications?