Fix one-off error in base case for binsearch