adding jars and also modified binarySearch