Bsearch not yet bulletproof, still working on it