PPT Slide
// Given sorted b, return the integer k that satisfies
// b[0..k] <= x < b[k+1..b.length-1]
public static int binarySearch( int [ ] b) {
// Invariant: -1 <= k < j <= b.length and
// b[0..k] <= x < b[k+1..b.length]
// We know -1 <= k < e < j <= b.length