Bsearch solutions