Add java binary search