Binary Search algorithm in C