Rewrite bisect_find to work properly.