KarateChop(binary search) kata in C#