less & less equal bug fix

- fixed bug in less and less equal selections using sorted keys (bsearch)
- refactored bsearch class