simple java program that performs binary search