Bisect sorted arrays