GCJ, very nice binary search.