Adam Shukur Binary Search solution