Got binary search working