Simplify binary search and update documentation