adding java binary search