Add example code to binarySearch