BinarySearch Ccode