public static int BSLargerThanSearch_solution2(int[] array, int key, boolean print) {
		if(key<array[0]) {
			if(print) System.out.println("Result is " + array[0]);
			return 0;
		}
		if(key>array[array.length-1]) {
			if(print) System.out.println("No Result");
			return -1;
		}
		
		int start = 0;
		int end = array.length-1;
		int mid;
		
		while(start<end) {
			mid = start + (end-start)/2;
			if(array[mid] <= key) {
				start = mid+1;
			} else if(array[mid] > key) {
				end = mid;
			}
		}
		
		if(print) System.out.println("Result is " + array[start]);
		return start;
	}