Added method binarySearch