I did around 20 binary search problems, but I still can't figure out how do I set the boundary invariants. I always get confused about this. There aren't many great resources for binary search on the internet.