Binary Search Kata solution in C