added BinarySearch in java