Add BinarySearch implementation